$(document).ready(function(){
var validator = $("#frmEditjob").validate({
	errorElement:'div',
	rules: {
		trade: {
			required: true			
		},
		jobtype: {
			required: true			
		},
		job_desc :{
			required: true,
			minlength: 30			
		},
		work_to_start: {
			required: true			
		},
		approx_budget: {
			required: true			
		},
		postcode: {
			required: true,
			minlength:3
			//remote: SITEROOT+"/modules/register/checkpostalexits.php"			
		},
		state_id: {
			required: true
		},
		joblogo: {
			accept: "jpg|jpeg|png|bmp"			
		}
	},
	messages: {
		trade: {
			required: "Please select trade category"
		},
		jobtype: {
			required: "Please select job type"
		},
		job_desc :{
			required:  "Please enter job description",
			minlength: jQuery.format("Enter at most {0} digits")
		},
		work_to_start: {
			required: "Please select one option for work to start"			
		},
		approx_budget: {
			required: "Please select one option for approximate budget"			
		},
		postcode: {
			required: "Please enter postal code",
			minlength: "Please Enter Minimum 3 digits"
			//remote: jQuery.format("Enter only australian postal code")			
		},
		state_id: {
			required: "Please select state"			
		},
		joblogo: {
			accept: "Please upload image only jpg|jpeg|png|bmp"			
		}
	}
});


});